import instacne from "../request";
import type { Ref } from "vue";

interface IAdvertise {
    code: number;
    data: {
        list: [
            {
                clickCount: number;
                endTime: string;
                id: number;
                name: string;
                note: string;
                orderCount: number;
                pic: string;
                sort: number;
                startTime: string;
                status: number;
                type: number;
                url: string;
            }
        ];
        pageNum: number;
        pageSize: number;
        total: number;
        totalPage: number;
    };
    message: string;
}
//封装广告请求
const homeAdvertise = (data: any): Promise<any> => {
    return instacne.get(`/home/advertise/list`, data);
};
export {
    homeAdvertise
}
export type { IAdvertise }